package com.indusfo.spc.reportForms.controller;

import com.indusfo.spc.reportForms.pojo.Worker;
import com.indusfo.spc.reportForms.service.WorkerService;
import com.indusfo.spc.vo.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @ClassName WorkerController
 * @Description
 * @Author louk
 * @Date 2020/2/5 22:26
 */
@Controller
@RequestMapping("worker")
public class WorkerController {

    @Resource
    WorkerService workerService;

    @ResponseBody
    @RequestMapping("queryWorkerInfo")
    public JSONObject queryWorkerInfo(@RequestBody  Worker worker){
        return workerService.queryWorkerInfo(worker);
    }

}
